package com.self.springframework.beans.factory.config;

import com.self.springframework.beans.factory.BeanFactory;

public interface AutowireCapableBeanFactory extends BeanFactory {

    /**
     * 执行BeanPostProcessor 接口实现类的 postProcessBeforeInitlization 方法
     * @param bean
     * @param beanName
     * @return
     */
    Object applyBeanPostProcessorsBeforeInitialization(Object bean, String beanName);

    /**
     * 执行BeanPostProcessor 接口实现类的 postProcessAfterInitlization 方法
     * @param bean
     * @param beanName
     * @return
     */
    Object applyBeanPostProcessorsAfterInitialization(Object bean, String beanName);
}
